const path = require('path');
const fs = require('fs');
const entrancePaths = path.resolve(__dirname, '../src/entrances')
const files = fs.readdirSync(entrancePaths);
let entrances = [];
files.forEach(item => {
  const { ext, name} = path.parse(item);
  if (ext === '.js') { 
    entrances.push(name)
  }
})

module.exports = entrances;